The hamming distance between two code words C 1 = [1011 0101] and
![The hamming distance between two code words C 1 = [1011 0101] and](/img/relate-questions.png)
| The hamming distance between two code words C1 = [1011 0101] and C2 = [0111 1010] is
A. 4
B. 5
C. 3
D. 6
Please scroll down to see the correct answer and solution guide.
Right Answer is: D
SOLUTION
The Hamming distance between two codewords is the number of bit positions in which they differ.
Given:
C1 = [1011 0101]
C2 = [0111 1010]
Since the two codewords differ in 6 bit positions as indicated by bold letter bits, the hamming distance is 6.